<?php
namespace pgc;
use \hc\tpl;
use \hc\session;
use \hc\js;
class Manuscript extends tpl{
	public function __construct(){
		parent::__construct();
		session::init();
		if(isset($_SESSION['pgcinfo'])){
				$this->pgcinfo=$_SESSION['pgcinfo'];
		}else{
				$url=MODEL_URL."/Login/index.html";
			 echo 	js::to_url($url);exit;
		}
    $this->manuscript_m=new \model\manuscript_m;
	}
	public function index(){
    $where=array();
    $data=$this->manuscript_m->s_all_ajaxs($where);
    if(isset($_POST['ajaxs'])){
        ajax_return(true,'',$data);
    }
    $this->assign('listarr',$data['list']);
    $this->assign('pageshow',$data['pageshow']);
		 $this->display('manuscript/lists.tpl');
	}

}
?>
